From: Lars Magne Ingebrigtsen Date: Sat, 7 Jan 2012 11:46:47 +0000 (+0000) Subject: shr.el (shr-visit-file): Move point to the beginning of the buffer after rendering. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1226 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=58cb0eeb29508cafcefdffa18dbf624df8bb7e10;p=emacs.git shr.el (shr-visit-file): Move point to the beginning of the buffer after rendering. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 15b659cecb6..7df668591ff 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2012-01-07 Lars Magne Ingebrigtsen + + * shr.el (shr-visit-file): Move point to the beginning of the buffer + after rendering. + 2012-01-07 Lars Magne Ingebrigtsen * gnus-sum.el (gnus-summary-read-group): Document more parameters diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index d4d8f7dd31e..969d893c2d4 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -134,7 +134,8 @@ cid: URL as the argument.") (shr-insert-document (with-temp-buffer (insert-file-contents file) - (libxml-parse-html-region (point-min) (point-max))))) + (libxml-parse-html-region (point-min) (point-max)))) + (goto-char (point-min))) ;;;###autoload (defun shr-insert-document (dom)